<template>
  <el-select placeholder="请选择" :value="value" @change="$emit('input',$event)">
      <el-option
        v-for="item in broker"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
</template>

<script>
  import { mapActions,mapState } from "vuex"
  export default {
      name:"BrokerSelect",
      props:{
        value:{
          type:String,
          default:"",
        }
      },
      data() {
        return {
          options: [],
        }
      },
      computed:{
        ...mapState("broker",["broker"])
      },
      created(){
        this.getBrokerSelect()
      },
      methods:{
        ...mapActions("broker",["getBrokerSelect"])
      }
    }
</script>

<style>
</style>
